import {RouteRecordRaw} from "vue-router"

const routes: RouteRecordRaw[] = [
    {
        path:'/',
        name:'login',
        component:()=>import('./modules/login.vue'),
        meta:{
            title: '管理员登录',
            isShow:false
        }
    },
    {
        path: '/index',
        component:()=>import('./modules/layout/index.vue'),
        children:[
            {
                path:'/info',
                name:'info',
                component:()=>import('./modules/info.vue'),
                meta:{
                    title: '鲜花信息管理',
                    isShow:true,
                    keepAlive:false,
                    icon:'eiconfont e-icon-yumaopai-01'
                }
            },
            {
                path:'/infoTon',
                name:'infoTon',
                component:()=>import('./modules/infoTon.vue'),
                meta:{
                    title: '鲜花资讯管理',
                    isShow:true,
                    keepAlive:false,
                    icon:'eiconfont e-icon-shexiangji'
                }
            },
            {
                path:'/order',
                name:'order',
                component:()=>import('./modules/order.vue'),
                meta:{
                    title: '订单管理',
                    isShow:true,
                    keepAlive:false,
                    icon:'eiconfont e-icon-xianxingbenzitubiao1'
                }
            },
            {
                path:'/userM',
                name:'userM',
                component:()=>import('./modules/userM.vue'),
                meta:{
                    title: '用户管理',
                    isShow:true,
                    keepAlive:false,
                    icon:'eiconfont e-icon-xianxinggongjutubiao'
                }
            },
            {
                path:'/userInfo',
                name:'userInfo',
                component:()=>import('./modules/userInfo.vue'),
                meta:{
                    title: '个人中心',
                    isShow:false,
                    keepAlive:false
                }
            },
            {
                path:'/infoUpAndAdd',
                name:'infoUpAndAdd',
                component:()=>import('./modules/infoUpAndAdd.vue'),
                meta:{
                    title: '鲜花信息添加或编辑',
                    isShow:false,
                    keepAlive:false
                }
            },
            {
                path:'/infoTonUpAndAdd',
                name:'infoTonUpAndAdd',
                component:()=>import('./modules/infoTonUpAndAdd.vue'),
                meta:{
                    title: '鲜花资讯添加或编辑',
                    isShow:false,
                    keepAlive:false
                }
            },
            {
                path:'/infoOrder',
                name:'infoOrder',
                component:()=>import('./modules/infoOrder.vue'),
                meta:{
                    title: '订单详情',
                    isShow:false,
                    keepAlive:false
                }
            }
        ]
    }
]

export default routes
